package com.hxzy.framework.common.req;
 
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotNull;

/**
 * @Author wy
 * @Description 分页工具类
 * @Date 2024/1/23 16:45
 * @Version 1.0
 */
@Getter
@Setter
@ApiModel(description = "分页请求")
public class PageReq {

    @ApiModelProperty(value = "每页笔数",required = true,example = "10")
    @NotNull(message = "每页笔数不能为空")
    private Integer pageSize;

    @ApiModelProperty(value = "当前页数",required = true,example = "1")
    @NotNull(message = "当前页数不能为空")
    private Integer pageNum;

}
